package competition.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/7/007.
 */
public interface UserDao {
    public Map isExist(String username);

    public Map insertData(String username, String password, String name);

    public Map modify(String username, String newPassword);

    //2017.08.15
    public int consumeTimes(int user_id);

    public List personMessage(int user_id);

    //2017.08.17
    public List queryHadPublishTrade();

    //2017.08.19
    public boolean uploadIcon(String img, int user_id);

    //2017.10.1
    public boolean focusTop(int user_id, int top_id, int status);
    //2017.10.2
    public boolean focusTrade(int user_id, int trade_id, int status);
    public Map lookFocus(int user_id,int page,int num);

    //2017.10.8
    public boolean userFollow(int user_id,int follow_id,int status);

    public int lookFollow(int user_id);

    //2017.10.12
    public Map lookSelfFocus(int user_id,int page,int num);
    public int lookSelfFollow(int user_id);

    //2017.10.17
    public boolean leaveMessageUser(int username_id,int leaveName_id,String message,int is_reply);


    //2017.10.18
    public List lookMessageUser(int user_id);

    //2017.10.26
    public List getNews(int page,int num);
    public List getTop(int user_id);

}
